package com.ruoyi.teaching.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.Date;

/**
 * 任务对象 ya_task
 *
 * @author ruoyi
 * @date 2024-01-23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Task extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 任务id */
    private Long id;

    /** 班级id(冗余) */
    @Excel(name = "班级id(冗余)")
    private String classId;

    /** 任务描述 */
    @Excel(name = "任务描述")
    private String taskDescribe;

    /** 阶段任务名称 */
    @Excel(name = "阶段任务名称")
    private String stageTaskName;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String imageAddress;

    /** 学生id */
    @Excel(name = "学生id")
    private String studentId;

    /** 任务状态 */
    @Excel(name = "审核状态")
    private Integer status;

    /**
     * 阶段id
     */
    @Excel(name = "阶段id")
    private Long stageId;

    /**
     * 完成状态
     */
    @Excel(name = "完成任务状态")
    private Integer finishStatus;
    /**
     * 检查日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @Excel(name = "检查时间")
    private Date inspectDate;
    /**
     * 阶段任务
     */
    private StageTask stageTask;
}
